﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:System_Windows_Documents="clr-namespace:System.Windows.Documents;assembly=PresentationUI" x:Class="Indigo.Quibbler.Controls.SpiderNode"
    xmlns:common="clr-namespace:Indigo.Quibbler.Common"
    Width="200" Height="150" Background="White">
    <!--<UserControl.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="Black"/>
            <GradientStop Color="#FF011126" Offset="1"/>
            <GradientStop Color="Black" Offset="0.58"/>
        </LinearGradientBrush>
    </UserControl.Background>-->
    <Border x:Name="borderArticle">
        <Grid x:Name="gridLayout" Margin="9">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition Width="3*"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="txtHeadline"  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Headline}" FontSize="16" FontFamily="Georgia" TextWrapping="Wrap" FontWeight="SemiBold" TextTrimming="WordEllipsis" MaxHeight="100" Foreground="#FF216B96" ScrollViewer.VerticalScrollBarVisibility="Disabled" TextAlignment="Left"/>
            <TextBlock x:Name="txtSubHeadline" Grid.Row="1"  Grid.Column="0" Text="{Binding SubHeadline}" TextWrapping="Wrap" TextTrimming="WordEllipsis" FontSize="12" FontFamily="Georgia" Margin="0,5,5,0" Foreground="#FF535353" HorizontalAlignment="Center" VerticalAlignment="Center" ScrollViewer.VerticalScrollBarVisibility="Disabled" TextAlignment="Left"/>
            <common:AsyncImageControl x:Name="imgArticle"  Grid.Row="1" Grid.Column="1" Source="{Binding ImageUrl}" Margin="5,0,0,0" MaxHeight="72" MaxWidth="108" ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        </Grid>
    </Border>
</UserControl>
